package com.cn.wanxi.data;

import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface UserData {
    int register(UserModel userModel);

    UserModel findByUsername(String username);

    UserModel findByUsernameAndPassword(UserModel userModel);

    List<UserModel> findAll();

    int del(Integer id);

    UserModel findById(Integer id);
}
